<template>
    <div>
        <MyButton @abc="click"></MyButton>
        <button @click="click">按钮</button>
    </div>
</template>

<script>
import MyButton from "./组件/mybutton.vue"
export default {
    name: 'VueDemoIndex',
    components:{
        MyButton,
    },
    data() {
        return {
            n:"index"
        };
    },
    methods:{
        click(a){
            console.log(this);
            console.log(this.n);
            console.log(a);
            console.log(this==a);
        },

    }
};
</script>

<style lang="scss" scoped>

</style>